-- GENERATED SPELL FOR [Shrike Bat] --


function spell0_4861(pUnit, Event) --@Sonic Burst,Self--
pUnit:FullCastSpellOnTarget(8281,pUnit)
pUnit:RegisterEvent('Sorts_4861', 6293, 1)
end

function Sorts_4861(pUnit, Event)
local choix_sorts_4861 = math.random(0, 0)
if choix_sorts_4861 == 0 then
pUnit:RegisterEvent('spell0_4861', 1, 1)
end
end

function mob4861_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_4861', math.random(1500, 3000), 1)
end

function mob4861_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4861_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4861_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(4861, 1, 'mob4861_Action')
RegisterUnitEvent(4861, 2, 'mob4861_Leave')
RegisterUnitEvent(4861, 3, 'mob4861_Kill')
RegisterUnitEvent(4861, 4, 'mob4861_Die')
